import { Button } from 'antd'
import { useTranslation } from 'react-i18next'
import WebIcon from '@/components/WebIcon'

const Dashboard = () => {
  const { t } = useTranslation('', { keyPrefix: 'header' })
  const { origin } = window.location
  const handleOpen = () => {
    window.open(`${origin}/conf/about/index` )
  }
  return <>
    <Button type="primary" onClick={handleOpen}>{t('title')}</Button>
    <WebIcon name='add'/>
  </>
}
export default Dashboard